package com.example.demo.repository;

import com.example.demo.entity.TestRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TestRecordRepository extends JpaRepository<TestRecord, Long> {

    // 根据学生ID查找所有测试记录
    List<TestRecord> findByStudentId(Long studentId);

}
